home *** CD-ROM | disk | FTP | other *** search
- Path: howland.reston.ans.net!gatech!gt-news!james
- From: james@amber.biology.gatech.edu (James McIninch)
- Newsgroups: comp.lang.c
- Subject: Re: This should really be a simple question f
- Date: 4 Apr 1996 15:20:05 GMT
- Organization: Georgia Institute of Technology
- Message-ID: <4k0pb5$s49@mordred.gatech.edu>
- References: <4jrue1$gsu@nyheter.chalmers.se> <4jubm6$pal@spanky.pls.ov.com> <4k0lag$hn6@linet06.li.net>
- NNTP-Posting-Host: exon.biology.gatech.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
- Jeremy Markman (jeremy@newshost.li.net) wrote:
- : In article gsu@nyheter.chalmers.se, Tobias Nilsson <tb9593@ios.chalmers.se> writes:
- : >Anyway... I'm just trying to read the keyboard without having the
- : >characters displayed on the f-cking screen! Just as that! But I've
- : >tried getchar, scanf, fun.01 int 21h... but they all display them...
-
- : The getch() function will not echo keyboard input to the screen...
-
- From the Solaris curses man page for getch() (which, by the way, is not a
- standard C library function so it's usage and availability will vary from
- machine to machine and from OS to OS):
-
- DESCRIPTION
- With the getch(), wgetch(), mvgetch(), and mvwgetch() rou-
- tines a character is read from the terminal associated with
- the window. In no-delay mode, if no input is waiting, the
- value ERR is returned. In delay mode, the program waits
- until the system passes text through to the program.
- Depending on the setting of cbreak(), this is after one
- character (cbreak mode), or after the first newline (noc-
- break mode). In half-delay mode, the program waits until a
- character is typed or the specified timeout has been
- reached. Unless noecho() has been set, the character will
- also be echoed into the designated window.
-
-